// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 76;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "As you get farther north, the ground slopes upward. The grass thins out. The trees are more sickly. The wind grows hot and puts bits of dust in your eyes.";
	text2 = "A rock quarry has been dug out of the cliff wall. Switchbacks have been carved out of the stones and dirt, climbing a hundred feet into the mountain. You can see workers in long, flowing garb carrying rock out of tunnels in the wall.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "You find the remains of a crumbling wall, at least a hundred years old. Some old, ambitious lord of the Ro attempted to grab and hold this land. They were then destroyed for their hubris. Perhaps by a different clan. Perhaps by Haven.";
	text2 = "It's rare to see walls like this in the Rokaj. After the Great Uprising, Haven forbade the Ro from building permanent defensive fortifications.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You find an abandoned cache of goods. Among the pottery, planks, and other junk, you find a crate of bars of a strange, dull metal. Seems useful. You take it.";
	code =
		reward_give(4);
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "Now that the raiders are dead, their treasure is yours. You find an assortment of stolen coins and jewelry. You also find an old, worn bone scroll tube. There is a sheet of parchment inside.";
	code =
		change_coins(95,TRUE);
		reward_give(407);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You search the dead raiders. Alas, they had not been successful in their efforts. You find no treasure of note.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "Some workers were recently clearing these woods to build more farms. They fled when the raids started.";
	text2 = "Hungry wolves took advantage of their absence to move in.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "You search the dead wolves, but you don't find any treasure. Probably because they don't have pockets.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You find a remote farmhouse. It is not entirely abandoned. The crops have been damaged by many booted feet, but the buildings are completely intact. You don't see any workers, though.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(176,11) < 2;
	question = "Approach the farm.";
	text1 = "When you emerge into the open, a bunch of warriors emerge from the farmhouse to meet you. Their weapons are drawn. They are clearly raiders. When they get close enough to see who you are, they are not pleased.";
	text2 = "Their leader approaches. He has the bronze skin of the other raiders you met. His spear is over his shoulder, and he's trying to not look threatening. _Hello, Havenite. This farm is our spoils. We don't want trouble with outsiders._";
	text3 = "The armed raiders emerge from the building. Their leader warily approaches you. _You are back, Havenite. We are finishing our work, and we will depart. We want no trouble._";
	action = SET_TO_1 176 11;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(176,11) > 1;
	question = "Search the farm.";
	text1 = "The raiders are gone, but the farmers haven't returned. All of the buildings and tools are intact, but there is nothing here of value to you. You rest, enjoy having a roof over your head, and depart.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "You turn and leave without incident.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Where are you from?_";
	text1 = "_We are of the Low Dhaga. We're miners and stoneworkers, mostly, but we raid the Gentle Coast from time to time. We are going home soon._";
	
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I was attacked by raiders._";
	text1 = "The raiders are very nervous. _We heard that. We knew nothing about attacking Haven. We thought this was a normal mass raid. We would not have come if we thought some would wage war with Haven._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Why are you here?_";
	text1 = "_The Gentle Coast is soft and rich, so they must share their wealth with the true Ro. The Low Dhaga has always raided here. It is our right._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What happened to the farmers who were here?_";
	text1 = "_They saw us coming and fled. We will go soon and let the farmers reclaim their farm. We left them enough to survive. Don't worry. It is our way._";
		
begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_Enough chat._";
	text1 = "_Yes._ He is eager to end the conversation.";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_You have to go now._";
	text1 = "The raiders sigh. They are offended, but they don't want to fight Havenites. Within an hour, they have packed up and departed. They have left nothing behind of value.";
	action = END_TALK;
	code =
		sf(176,11,2);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I am hunting raiders._ Attack.";
	text1 = "They are genuinely surprised that you would interrupt their legitimate raiding with an unwarranted surprise attack.";
	action = END_TALK;
	code =
		sf(176,11,2);
		make_outdoor_enc(320,377,0);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._ Leave.";
	text1 = "They watch you go with relief and return to their theft.";
	action = END_TALK;


//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This band of Ro warriors looked, at first, like a Gentle Coast patrol. When you get close, you realize that they are raiders. They draw their weapons and approach you. Then they get close enough to realize that you are a Havenite.";
	text2 = "They back away, and their leader steps forward. _Apologies, Havenite. We are raiders from the Low Dhaga. We did not know that some of us wanted to attack Haven. We are willing to let you go._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Why did you come on this raid?_";
	text1 = "_The Low Dhaga always raids the Gentle Coast. Haven has always respected our ways, as long as we steal and don't kill._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Who decided to attack Haven?_";
	text1 = "_We don't know. We heard that a raid was starting. These things rise as a wave. We don't know who started it._";
	text2 = "You aren't sure if she is telling the truth.";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_You may go._";
	text1 = "The raiders understand immediately that this is their only chance to live. They decide to be content with survival and flee toward the Low Dhaga.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Raiders attacked me. Raiders must die._ Attack.";
	text1 = "The raiders from the Low Dhaga are admirably resigned to their fate.";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				